home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / unix / include / internal / timers.h < prev    next >
C/C++ Source or Header  |  1992-07-19  |  478b  |  21 lines

  1. #ifndef TIMERS_H
  2. #define TIMERS_H
  3.  
  4. struct timeinfo {
  5.   struct timerequest *io;
  6.   int sent;
  7. };
  8.  
  9. struct timeinfo *_alloc_timer(void);
  10. void _free_timer(struct timeinfo *timer);
  11. void _timer_abort(struct timeinfo *timer);
  12. ULONG _timer_sig(struct timeinfo *timer);
  13.  
  14. void _timer_start(struct timeinfo *timer, int secs, int micros);
  15. /* _timer_start(timer, 0) stops a timer */
  16.  
  17. int _timer_expired(struct timeinfo *timer);
  18. /* A non-started timer is defined to not have expired */
  19.  
  20. #endif
  21.